﻿using DtoFw.Query;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DtoFw.Interface
{
    /// <summary>
    /// 仓库
    /// </summary>
    public interface IRoom
    {
        [Api(Router = "room/area/post")]
        BaseResult PostArea(AreaPostDto dto);
        [Api(Router = "room/area/put")]
        BaseResult PutArea(AreaPutDto dto);
        [Api(Router = "room/area/query")]
        BaseGenericResult<List<AreaQueryDto>> QueryAreas();
        [Api(Router = "room/area/delete")]
        BaseResult DeleteArea(DeleteSingleDto query);
        [Api(Router = "room/cabinet/post")]
        BaseResult PostCabinet(CabinetPostDto dto);
        [Api(Router = "room/cabinet/put")]
        BaseResult PutCabinet(CabinetPutDto dto);
        [Api(Router = "cabinet/{params}/query")]
        BaseGenericResult<List<CabinetQueryDto>> QueryCabinets(long areaId);
        [Api(Router = "room/cabinet/delete")]
        BaseResult DeleteCabinet(DeleteSingleDto query);
        [Api(Router = "room/box/post")]
        BaseResult PostBox(BoxPostDto dto);
        [Api(Router = "room/box/put")]
        BaseResult PutBox(BoxPutDto dto);
        [Api(Router = "box/{params}/{params1}/query")]
        BaseGenericResult<List<CabinetQueryDto>> QueryBoxs(long areaId,
            long cabinetId);
        [Api(Router = "room/box/delete")]
        BaseResult DeleteBoxs(DeleteDto query);
    }
}
